import { createSlice } from '@reduxjs/toolkit'

const initialState = {
    collapse: false,
}

export const collapseSlice = createSlice({
    name: 'collapse',
    initialState,
    reducers: {
        change: (state) => {
            state.collapse = !state.collapse
        },
        colse: (state) => {
            state.collapse = false
        }
    },
})